package com.liu.qqRobot.myself.job;

import com.liu.qqRobot.myself.service.PollingCircuitService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class PollingCircuitJob {

    @Resource
    private PollingCircuitService pollingCircuitService;

    //每周一8点执行
    @Scheduled(cron = "0 0 0 * * 1")
    public void pollingCircuit() {
        log.info("开始轮询回廊奖励");
        pollingCircuitService.pollingCircuit();
        log.info("结束轮询回廊奖励");
    }
}
